import request from "@/utils/request";

// 获取路由
export const getRouters = () => {
    return request({
        url: "/getRouters",
        method: "get"
    });
};
// 更新店铺数据
export function toUpdateShop() {
    return request({
        url: "biz/shop/list",
        method: "get"
    });
}

// 获取首页数据
export function getHomepageDate(data) {
    return request({
        url: "homepage/getHomepageDate",
        method: "get",
        params:data
    });
}

// 获取本周和本月商品排行
export function getWeekGoodsRank(goodsStatus) {
    return request({
        url: "homepage/getWeekGoodsRank",
        method: "get",
        params: goodsStatus
    });
}

// 获取本周和本月店铺排行
export function getWeekShopsRank(shopStatus) {
    return request({
        url: "homepage/getWeekShopsRank",
        method: "get",
        params: shopStatus
    });
}
// 获取本周和本月订单排行
export function ordersNum(orderStatus) {
    return request({
        url: "homepage/ordersNum",
        method: "get",
        params: orderStatus
    });
}
// 获取本周和本月下单金额排行
export function ordersPrice(priceStatus) {
    return request({
        url: "homepage/ordersPrice",
        method: "get",
        params: priceStatus
    });
}

